package Demo08;

public enum Gender implements Printer{
    Male(){
        @Override
        public void print() {
            System.out.println("man");
        }
    },Female(){
        @Override
        public void print() {
            System.out.println("woman");
        }
    };


}

interface Printer{
    void print();
}